﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Presentation.Module.Security.Model
{
    public class User
    {
        public string UserName { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public Password UserPassword { get; set; }
        public string CompanyId { get; set; }
        public Role UserRole { get; set; }

        public User()
        {
            UserRole = new Role();
            UserPassword = new Password();
        }

        public bool ChangePassword(string newPassword)
        {
            if (UserPassword.ChangePassword(newPassword))
            {
                return true;
            }

            return false;
        }
    }
}
